Page({
  data: {
    typeText: '',
    phone: '',
    content: '',
    fileList: []
  },
  onSelectType() {
    // 打开类型选择弹窗
  },
  onInputPhone(e) {
    this.setData({ phone: e.detail });
  },
  onInputContent(e) {
    this.setData({ content: e.detail });
  },
  afterRead(e) {
    const { file } = e.detail;
    this.setData({ fileList: this.data.fileList.concat(file) });
  },
  onDelete(e) {
    const { index } = e.detail;
    const fileList = this.data.fileList;
    fileList.splice(index, 1);
    this.setData({ fileList });
  },
  onSubmit() {
    // 提交逻辑
  }
})